package com.example.simplecardtenantbank.dataobject;

import com.example.simplecardtenantbank.Utils.serializer.Date2LongSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class TCard {

    private Integer id;

    private String cardId;

    private String userId;

    private String cardType;

    private String bankName;

    private String fullCardNum;

    private String cardNum;

    private String nameOnCard;

    private BigDecimal balance;

    private String bankid;

    private String openbank;

    private BigDecimal currentbillamt;

    private BigDecimal currentbillpaidamt;

    private BigDecimal currentbillremainamt;

    private BigDecimal currentbillremainminpayment;

    private BigDecimal creditLimit;

    @JsonSerialize(using = Date2LongSerializer.class)
    private Date openTime;

    @JsonSerialize(using = Date2LongSerializer.class)
    private Date createTime;

    @JsonSerialize(using = Date2LongSerializer.class)
    private Date lastModifyTime;
}
